package com.yili.oa.service;

import com.yili.oa.entity.SearchBase;
import com.yili.oa.models.Permission;
import com.yili.oa.vo.request.PermissionDataReq;

import java.util.List;

/**
 * @author lxr
 * @version v0.01
 * @date 2019/3/27 0027
 * @email 200890949@qq.com
 */
public interface PermisService {

    Boolean add(PermissionDataReq permissionDataRe);

    List<Permission> getList(SearchBase searchBase);

    Permission getById(String id);

    Boolean update(PermissionDataReq permissionDataRe);

    Boolean del(List<String> permissionIds);

    Boolean checkName(String name,String id);

    Boolean checkCode(String code,String id);
}
